package com.zhanglingfei.yuekaoshop.entity;

import lombok.Data;

import java.io.Serializable;

import javax.persistence.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author Shichao.Lu
 * null
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Table(name = "tb_spu_detail")
@DynamicInsert
@DynamicUpdate
public class SpuDetail implements Serializable {

	/**
	 * null
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "spu_id")
	private Long spuId;

	/**
	 * 商品描述信息
	 */
	@Column(name = "description")
	private String description;

	/**
	 * 通用规格参数数据
	 */
	@Column(name = "generic_spec")
	private String genericSpec;

	/**
	 * 特有规格参数及可选值信息，json格式
	 */
	@Column(name = "special_spec")
	private String specialSpec;

	/**
	 * 包装清单
	 */
	@Column(name = "packing_list")
	private String packingList;

	/**
	 * 售后服务
	 */
	@Column(name = "after_service")
	private String afterService;
}
